import Cookies from 'js-cookie'

const TokenKey = 'vue_evey_card_token'

export function getToken() {
    // Cookies.get(TokenKey) || 
    let token = sessionStorage.getItem(TokenKey)
    return token;
}

export function setToken(token) {
    sessionStorage.setItem(TokenKey,token)
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    sessionStorage.removeItem(TokenKey)
  return Cookies.remove(TokenKey)
}
